FROM        debian:8.0
MAINTAINER  andystanton
ENV         LANG C.UTF-8
RUN         apt-get update -qq -y && \
            #apt-get -y install mysql-server mysql mysql-devel && \
            apt-get install -y patch php5-cli && \
            apt-get -y install php5 php5-mhash php5-mcrypt php5-curl php5-cli php5-mysql php5-gd php5-intl php5-xsl php5-common && \
            apt-get clean && \
            rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD         image-common /tmp/dexec/image-common
VOLUME      /tmp/dexec/build
ENTRYPOINT  ["/tmp/dexec/image-common/dexec-script.sh", "php"]

